#include <iostream>
#include <cstring>
using namespace std;

struct Student
{
    int age;
    char name[20];
    int score;

    friend ostream &operator<<(ostream &os, Student &s)
    {
        os << "age:" << s.age << " name:" << s.name << " score:" << s.score;
        return os;
    }
};

int main()
{
    Student s1;
    s1.age = 18;
    strcpy(s1.name, "zhangsan");
    s1.score = 100;

    cout << s1 << endl;

    return 0;
}